<?php
namespace Home\Service;
/**
 * author      : lis
 * creatTime   : 2015-12-29 15:03
 * email       : 407505297@qq.com
 * description :
 */
class IndexService{
    public static function getVersion(){
        $ret = array();
        $ret['php_version'] = PHP_VERSION;
        $model = new \Home\Model\IndexModel();
        $rs = $model->getVersion();
        $ret['mysql_version'] = $rs[0]['version'];
        return $ret;
    }

    public static function getTables(){
        $model = new \Home\Model\TestModel();;
        $ret = $model->getTables();
        return $ret;
    }
}